{template 'web/common/common'}
{template 'web/land/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">
            种子管理>编辑
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/send',array('m'=>'kundian_farm','op'=>'send_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label class="col-sm-2 control-label">种子名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="send_name" value="{$list['send_name']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">价格(1/㎡)</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="price" value="{$list['price']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">封面(60*60)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('cover',$list['cover']);}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">轮播图(375*240)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_multi_image('send_slide',$list['send_slide']);}
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">产量(1/㎡)</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="output" value="{$list['output']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">作用</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="effect" value="{$list['effect']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">播种时间</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="send_time" value="{$list['send_time']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">生长周期</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="cycle" value="{$list['cycle']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否上架</label>
                <div class="col-sm-8">
                    <div class="col-sm-8">
                        {if $list['is_putaway']==1}
                        <input type="checkbox" checked class="js-switch" value="1" name="is_putaway">
                        {else}
                        <input type="checkbox" class="js-switch" name="is_putaway" value="1">
                        {/if}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">排序</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="rank" value="{$list['rank']}">
                </div>
            </div>
            <div class="form-group">

                <div class="col-sm-offset-2 col-sm-10">
                    <input type="hidden" name="id" value="{$list['id']}">
                    <input type="submit" name="submit" class="btn btn-default">
                    <a class="btn btn-default" href="{url 'site/entry/send',array('m'=>'kundian_farm')}">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
